package net.xdclass.rbac_shiro.controller;

import net.xdclass.rbac_shiro.domain.JsonData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created whit IntelliJ IDEA
 * User:杨骏杰
 * Date:2021/2/16
 * Time:16:06
 */
@RestController
@RequestMapping("authc")
public class OrderController {

    /**
     * 登陆测试接口
     * @return
     */
    @RequestMapping("/video/play_record")
    public JsonData findMyPlayRecord(){
        Map<String,String> recordMap = new HashMap<>();
        recordMap.put("SpringBoot入门到高级实战","第8章第1集");
        recordMap.put("Cloud微服务入门到高级实战","第4章第10集");
        recordMap.put("分布式缓存Redis","第10章第3集");
        return JsonData.buildSuccess(recordMap);
    }
}
